package ooday03;

public class SwimTest {
    public static void main(String[] args) {

        Dog d1 = new Dog("小黑", 2, "黑");
        d1.eat();//重写
        d1.swim();//接口
        d1.drink();//父类
        d1.lookHome();//子类

        Chick c1 = new Chick("小黄", 3, "黄");
        c1.eat();
        c1.drink();
        c1.layEgg();

        Fish f1 = new Fish("小金", 1, "金");
        f1.eat();
        f1.drink();
        f1.swim();//接口

    }
}
